weights=[20.5, 18.3, 22.1, 19.8, 25.0, 21.2]
average=sum(weights)/len(weights)
over_avg=[w for  w in weights if w>average]

print(f"平均体重为：{average:.2f}kg")
print("以下体重超过平均值，需要锻炼：")
for w in over_avg:
    print(f"- {w}kg")
    